$(function () {
    $.ajax({
        type: "post",
        url: "/PresentationForum/PUBLIC/pub_aside.php",
        dataType: "json",
        success: function (res) {
            console.log(res);
            if (res.code == 1) {
                var html = [];
                for (var i = 0; i < res.data.length; i++) {
                    var str = '<li>\
                    <a href="detail.php?' + res.data[i].id + '">\
                    <p class="title">' + res.data[i].title + '</p>\
                    <p class="reading">阅读(' + res.data[i].views + ')</p>\
                    <img src="' + res.data[i].feature + '">\
                    </div>\
                    </a>\
                    </li>'
                    html.push(str);
                }
                $('.rendom').html(html.join(""));
            }
        }
    });
});